// 引入封装好的request
import request  from "@/utils/request";
// 获取所有广告
export const getAdsApi = (data)=>{
    return request({
        url:'/upload/getads',
        method:'POST',
        data
    })
}
// 删除广告
export const delAdApi = (data)=>{
    return request({
        url:'/upload/deladupload',
        method:'POST',
        data
    })
}
// 广告图上传
export const adUploadApi = (data)=>{
    return request({
        url:'/upload/adupload',
        method:'POST',
        data
    })
}
// 确认添加到数据库
export const sureAddAdApi = (data)=>{
    return request({
        url:'/upload/sureaddad',
        method:'POST',
        data
    })
}